import React, {Component} from 'react';
import Dashboard from "@/pages/dashboard";
import {PageContainer} from "@ant-design/pro-components";
import {Card, Col, Row, Space} from "antd";
import ProgressTable from "@/pages/dashboard/Progress/ProgressTable";
import Demo from "@/pages/dashboard/Progress/Demo";
import ProgressCharts from "@/pages/dashboard/components/ProgressCharts";
import RadarCharts from "@/pages/dashboard/components/RadarCharts";
import Demo16 from "@/pages/dashboard/Progress/Demo16";
import Demo2 from "@/pages/dashboard/Progress/Demo2";
import Demo4 from "@/pages/dashboard/Progress/Demo4";
import Demo14 from "@/pages/dashboard/Progress/Demo14";
import Demo5 from "@/pages/dashboard/Progress/Demo5";
import Demo11 from "@/pages/dashboard/Progress/Demo11";
import Demo19 from "@/pages/dashboard/Progress/Demo19";
import Demo17 from "@/pages/dashboard/Progress/Demo17";
import Demo18 from "@/pages/dashboard/Progress/Demo18";
import Demo7 from "@/pages/dashboard/Progress/Demo7";
import Demo15 from "@/pages/dashboard/Progress/Demo15";
import Demo12 from "@/pages/dashboard/Progress/Demo12";
import Demo13 from "@/pages/dashboard/Progress/Demo13";
import Demo8 from "@/pages/dashboard/Progress/Demo8";
import Demo9 from "@/pages/dashboard/Progress/Demo9";
import {history} from "umi";
import Demo16_School from "@/pages/dashboard/Progress/Demo16_School";
import Demo16_Subject from "@/pages/dashboard/Progress/Demo16_Subject";
import ProgressTableSubject from "@/pages/dashboard/Progress/ProgressTableSubject";
import RadarChartsSelect from "@/pages/dashboard/components/RadarChartsSelect";

class SchoolDashboard extends Component {
  render() {
    const name = history.location.query.name
    return (
      <PageContainer title={name+" - 学科建设情况"}>
        <Space direction="vertical" size="middle" style={{display: 'flex'}}>
          <Card title="学科评估情况" bordered={false}>
            <Row>
              <Col span={24}>
                <ProgressTableSubject name={name}/>
              </Col>
              {/*<Col span={14}>*/}
              {/*  <Card title="全省第四、第五、第六轮学科评估情况" bordered={false}>*/}
              {/*    <Demo/>*/}
              {/*  </Card>*/}
              {/*</Col>*/}
            </Row>
          </Card>
          <ProgressCharts/>
          <RadarChartsSelect/>
          <Card title="全省一流学科经费统计" bordered={false}>
            {/*<Demo3/>*/}
            <Demo16/>
          </Card>

          {/*<h1>2模块</h1>*/}
          {/*<Card title="教学成果奖和一流课程" bordered={false}>*/}
          {/*  <Demo10/>*/}
          {/*</Card>*/}
          <Row>
            <Col span={12}>
              <Card title="教学成果统计" bordered={false}>
                <Demo2/>
              </Card>
            </Col>
            <Col span={12}>
              <Card title="近三年一流课程获奖数" bordered={false}>
                <Demo4/>
              </Card>
            </Col>
          </Row>
          {/*<Card title="江西省人才培养平台、基地" bordered={false}>*/}
          {/*  <Demo14/>*/}
          {/*</Card>*/}
          {/*<Row>*/}
          {/*  <Col span={12}>*/}
          {/*    <Card>*/}
          {/*      <Demo20/>*/}
          {/*    </Card>*/}
          {/*  </Col>*/}
          {/*  <Col span={12}>*/}
          {/*    <Card>*/}
          {/*      <Demo21/>*/}
          {/*    </Card>*/}
          {/*  </Col>*/}
          {/*</Row>*/}

          {/*<h1>3模块</h1>*/}
          <Row>
            <Col span={8}>
              <Card title="南昌大学" bordered={false}>
                <Demo5/>
              </Card>
            </Col>
            <Col span={8}>
              <Card title="江西财经大学" bordered={false}>
                <Demo5/>
              </Card>
            </Col>
            <Col span={8}>
              <Card title="江西农业大学" bordered={false}>
                <Demo5/>
              </Card>
            </Col>
          </Row>
          {/*<Card title="国际化水平比较" bordered={false}>*/}
          {/*  <Demo11/>*/}
          {/*</Card>*/}
          {/*<Card title="双一流学科博士后及科研助理" bordered={false}>*/}
          {/*  <Demo19/>*/}
          {/*</Card>*/}
          {/*<Row>*/}
          {/*  <Col span={12}>*/}
          {/*    <Card title="各院校省级以上师德标兵获奖人数" bordered={false}>*/}
          {/*      <Demo17/>*/}
          {/*    </Card>*/}
          {/*  </Col>*/}
          {/*  <Col span={12}>*/}
          {/*    <Card title="参与国内外标准制定数目" bordered={false}>*/}
          {/*      <Demo18/>*/}
          {/*    </Card>*/}
          {/*  </Col>*/}
          {/*</Row>*/}

          {/*<h1>4模块</h1>*/}
          {/*<Row>*/}
          {/*  <Col span={24}>*/}
          {/*    <Card title="国际合作论文数" bordered={false}>*/}
          {/*      <Demo7/>*/}
          {/*    </Card>*/}
          {/*  </Col>*/}
          {/*</Row>*/}
          <Card title="国内外期刊发表论文数" bordered={false}>
            <Demo15/>
          </Card>
          <Card title="学科各学校分别获得国家级、省部级奖项数" bordered={false}>
            <Demo12/>
          </Card>
          {/*<Card title="学校国家级平台建设情况" bordered={false}>*/}
          {/*  <Demo13/>*/}
          {/*</Card>*/}
          {/*<Card title="纵横向到校科研经费数" bordered={false}>*/}
          {/*  <Demo16/>*/}
          {/*</Card>*/}

          {/*<h1>5模块</h1>*/}
          {/*<Card title="成果转化到金额" bordered={false}>*/}
          {/*  <Demo8/>*/}
          {/*</Card>*/}
          {/*<Card title="智库建设情况" bordered={false}>*/}
          {/*  <Row gutter={16}>*/}
          {/*    <Col span={8}>*/}
          {/*      <Card title="南昌大学">*/}
          {/*        <Demo9/>*/}
          {/*      </Card>*/}
          {/*    </Col>*/}
          {/*    <Col span={8}>*/}
          {/*      <Card title="江西财经大学">*/}
          {/*        <Demo9/>*/}
          {/*      </Card>*/}
          {/*    </Col>*/}
          {/*    <Col span={8}>*/}
          {/*      <Card title="江西农业大学">*/}
          {/*        <Demo9/>*/}
          {/*      </Card>*/}
          {/*    </Col>*/}
          {/*  </Row>*/}
          {/*</Card>*/}

          {/*<CardCharts/>*/}
          {/*<BarCharts/>*/}
        </Space>
      </PageContainer>
    );
  }
}

export default SchoolDashboard;
